
public class Hello 
{

	public static void main(String[] args) 
	{
		//String word = "";
		
		PC pc = new PC();
		
		pc.PlayTF2();
		
		PC asus = new Asus();
		
		asus.PlayTF2();
		
		PC logi = new Logitech();
		
		logi.PlayTF2();
		
		/*for (int i = 100; i > 0; i--)
		{
			if (i%2 == 0)
			{
				System.out.println(i);
			}	
		}

		int j = 1;

		while (j < 100)
		{
			if (j%2 == 0)
			{
				j++;
				System.out.println(j);
			}
		}*/

		/*int j = 0;
		while (j < 100)
		{
			word = "Fish";
			System.out.println(word);
			j += 1;
			word = "Sticks";
			System.out.println(word);
			j += 1;
			word = "Ketchup";
			System.out.println(word);
			j += 1;
		}*/

		/*
		int prime = 1205;


		String hello = "Hello world";
		System.out.println(hello);

		PC pc = new PC("mmmm ;)", 1600, 1200, 81280.5);

		double powerNeeded = 52950;

		System.out.println("name: " + pc.name + "\npower: " + pc.power + "\nres X: " + pc.sizeX + "\nres Y: " + pc.sizeY + "\nHas enough power? " + "(" + powerNeeded +" needed) " + pc.CanPower(powerNeeded));
		Pythag(15,4,-134);

		String[] arrayStrings = {"Ryan","Java","AP exam","Idk","Random stuff"};

		PrintArray(arrayStrings);
		System.out.println(Product(4,8));
		
		System.out.println(Prime("14"));
		*/
	}
	
	static int Product(int x, int y)
	{
		return x * y;
	}
	
	static void PrintArray(String[] str)
	{
		for (int i = 0; i < str.length; i++)
		{
			System.out.println(str[i]);
		}
	}


	static void Pythag (double a, double b, double c)
	{ 
		double x = (-b + (Math.sqrt(b * b - 4*a*c)) / (2 * a));
		double y = (-b - (Math.sqrt(b * b - 4*a*c)) / (2 * a));
		System.out.println(x + "\n" + y);
	}

	public static String Prime(String num)
	{
		System.out.println("\n" +  num);
		int primLength = num.length();
		int total = 0;
		for (int i = 1; i < primLength; i++)
		{
			String currNum = num.substring(i, i + 1);
			total += Integer.parseInt(currNum);
		}
		if (total % 3 != 0 || total % 2 != 0)
		{
			return "\nNot prime";
		}
		else
		{
			return "\nPrime";
		}
	}
}
